<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="/MiniIBay/styles/style.css" />
<link rel="stylesheet" media="screen" type="text/css" title="Design" href="/MiniIBay/styles/form.css" />
<script type="text/javascript" src="/MiniIBay/js/formulaires.js"></script>
<title>Mini I Bay</title>
</head>
<body>
<div class="content">
	<div class="header">
		<div class="logo">
			<a href="/MiniIBay/home"><img src="/MiniIBay/images/logo.png" alt="Mini I Bay" border="0" /></a>
		</div>
		
		<div class="rechercheHeader">
			<form method="post" action="/MiniIBay/recherche">
				<input type="text" name="motif" />
				<input type="submit" name="chercher" value="Rechercher" />
			</form>
		</div>
		
		<div class="login">
			<c:choose>
				<c:when test="${! empty sessionScope.user_id}">
					<a href="/MiniIBay/login" title="Deconnexion">D&eacute;connexion [<c:out value="${sessionScope.username}" />] </a><br />
					<a href="/MiniIBay/profile" title="Profil">Mon compte</a><br />
					<div id="divNotifications">notifications</div>
				</c:when>
				<c:otherwise>
					<a href="/MiniIBay/login" title="Connectez vous">Connexion</a><br />
					<a href="/MiniIBay/form/inscription.jsp" title="Inscrivez vous">Inscription</a>
				</c:otherwise>
			</c:choose><br />
			<a href="faq">FAQ</a>
		</div>
	</div>
	
	<ul id="menu">
		<c:forEach items="${applicationScope.menu}" var="menu">
	 		<li <c:if test="${! empty param.type && param.type == menu.key }">class="onglet_actif"</c:if>> <a href="/MiniIBay/recherche?type=<c:out value="${menu.key}" />"/><c:out value="${menu.value}" /></a></li>
		</c:forEach>
	</ul>